/*
 * Copyright (C) 2017 MediaTek Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

#ifndef _MTK_MDPM_PLATFORM_DATA_H_
#define _MTK_MDPM_PLATFORM_DATA_H_

static struct scenario_power_type_t md_scen_power[SCENARIO_NUM] = {
	[S_STANDBY]		= {    0,    0},
	[S_2G_NON_CONN]		= {    1,    1},
	[S_2G_CONN]		= {   24,   24},
	[S_3G_TDD_PAGING]	= {   40,   40},
	[S_3G_TDD_TALKING]	= {   39,   39},
	[S_3G_TDD_DATALINK]	= {   56,   56},
	[S_C2K_PAGING]		= {    2,    2},
	[S_C2K_EVDO]		= {   59,   59},
	[S_C2K_SHDR]		= {   83,   83},
	[S_C2K_1X]		= {   40,   40},
	[S_3G_UL1_TALKING]	= {   44,   44},
	[S_3G_UL1_PAGING]	= {    2,    2},
	[S_3G_UL1_DATA_1C]	= {   90,   90},
	[S_3G_UL1_DATA_2C]	= {  112,  112},
	[S_4G_0D0U]		= {    2,    2},
	[S_4G_1CC]		= {  120,  120},
	[S_4G_2CC]		= {  188,  188},
	[S_4G_3D1U]		= {  246,  246},
	[S_4G_3D2U]		= {  290,  290},
	[S_4G_4D1U]		= {  530,  530},
	[S_4G_4D2U]		= {  538,  538},
	[S_4G_4D3U]		= {  557,  557},
	[S_4G_POS]		= {    0,    0}
};

static struct rfhw_power_t rfhw0[TX_DBM_NUM] = {
	[TX_2G_DBM] = {
		.pa_power = {
			{  840,  568,   488,  392,  308,  240,
			   188,  148,   118,   94,   78,   72},   /*MAX*/
			{  840,  568,   488,  392,  308,  240,
			   188,  148,   118,   94,   78,   72} }, /*AVG*/
		.rf_power = {
			{   39,   39,   39,   39,   39,   39,
			    39,   39,   39,   39,   39,   39},   /*MAX*/
			{   39,   39,   39,   39,   39,   39,
			    39,   39,   39,   39,   39,   39} }, /*AVG*/
		.section = {
			31, 29, 27, 25, 23, 21, 19, 17, 15, 13,  9,  0}
	},

	[TX_3G_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_3GTDD_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_4G_CC0_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_4G_CC1_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_C2K_DBM] = {
		.pa_power = {
			{ 1554, 1266, 1031,  852,  705,  590,
			   474,  389,  258,  152,  142,   65},   /*MAX*/
			{ 1554, 1266, 1031,  852,  705,  590,
			   474,  389,  258,  152,  142,   65} }, /*AVG*/
		.rf_power = {
			{   217,   216,   215,   214,   208,   208,
			    207,   188,   215,   175,   153,   147},   /*MAX*/
			{   217,   216,   215,   214,   208,   208,
			    207,   188,   215,   175,   153,   147} }, /*AVG*/
		.section = {
			24, 23, 22, 21, 20, 19, 18, 16, 13, 10,  4,  0}
	}
};

static struct rfhw_power_t rfhw1[TX_DBM_NUM] = {
	[TX_2G_DBM] = {
		.pa_power = {
			{  840,  568,   488,  392,  308,  240,
			   188,  148,   118,   94,   78,   72},   /*MAX*/
			{  840,  568,   488,  392,  308,  240,
			   188,  148,   118,   94,   78,   72} }, /*AVG*/
		.rf_power = {
			{   39,   39,   39,   39,   39,   39,
			    39,   39,   39,   39,   39,   39},   /*MAX*/
			{   39,   39,   39,   39,   39,   39,
			    39,   39,   39,   39,   39,   39} }, /*AVG*/
		.section = {
			31, 29, 27, 25, 23, 21, 19, 17, 15, 13,  9,  0}
	},

	[TX_3G_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_3GTDD_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_4G_CC0_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_4G_CC1_DBM] = {
		.pa_power = {
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60},   /*MAX*/
			{ 2020, 2020, 1320, 1156,  892,  812,
			   680,  580,  460,  280,  148,   60} }, /*AVG*/
		.rf_power = {
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105},   /*MAX*/
			{  143,  143,  142,  142,  140,  136,
			   137,  133,  127,  114,  108,  105} }, /*AVG*/
		.section = {
			23, 21, 20, 19, 18, 17, 15, 14, 11,  7,  1,  0}
	},

	[TX_C2K_DBM] = {
		.pa_power = {
			{ 1554, 1266, 1031,  852,  705,  590,
			   474,  389,  258,  152,  142,   65},   /*MAX*/
			{ 1554, 1266, 1031,  852,  705,  590,
			   474,  389,  258,  152,  142,   65} }, /*AVG*/
		.rf_power = {
			{   217,   216,   215,   214,   208,   208,
			    207,   188,   215,   175,   153,   147},   /*MAX*/
			{   217,   216,   215,   214,   208,   208,
			    207,   188,   215,   175,   153,   147} }, /*AVG*/
		.section = {
			24, 23, 22, 21, 20, 19, 18, 16, 13, 10,  4,  0}
	}
};

#endif /* _MTK_MDPM_PLATFORM_DATA_H_ */
